package cc.mrbird.febs.buss.service;

import cc.mrbird.febs.buss.entity.Suggest;

import cc.mrbird.febs.common.entity.QueryRequest;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import java.util.HashMap;

import java.util.List;

/**
 * 建言表 Service接口
 *
 * @author jeson
 * @date 2021-04-26 11:16:46
 */
public interface ISuggestService extends IService<Suggest> {

    /**
     * 查询（所有）
     *
     * @param suggest suggest
     * @return List<Suggest>
     */
    List<Suggest> findSuggests(Suggest suggest);
    IPage<Suggest> findSuggestDetail(QueryRequest request, HashMap<String, String> map);
    /**
     * 新增
     *
     * @param suggest suggest
     */
    void createSuggest(Suggest suggest);

    /**
     * 修改
     *
     * @param suggest suggest
     */
    void updateSuggest(Suggest suggest);

    /**
     * 删除
     *
     * @param suggest suggest
     */
    void deleteSuggest(Suggest suggest);

    /**
    * 删除
    * @param ids
    */
    void deleteSuggest(String[] ids);
}
